package org.etherframework.tests.features.command.commands
{
	import org.etherframework.controller.Controller;
	import org.etherframework.common.command.ICommand;
	import org.etherframework.tests.features.command.models.Item;
	
	public class MyController extends Controller
	{
		public function getUpdateItemCommand(item:Item):UpdateItemCommand
		{
			var cmd:UpdateItemCommand = command(UpdateItemCommand) as UpdateItemCommand;
			
			cmd.initialize(item);
			
			return cmd;
		}
		
		public function getSampleReactiveCommand():SampleReactiveCommand
		{
			return command(SampleReactiveCommand) as SampleReactiveCommand;
		}
		
		public function getErrorReactiveCommand():ErrorReactiveCommand
		{
			return command(ErrorReactiveCommand) as ErrorReactiveCommand;
		}
	}
}